package org.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * @author CoderXshuai
 * @date 2020/8/9/0009 19:05
 */
//定制扫描路径
@SpringBootApplication(scanBasePackages = {"org.example"})
//定义JPA接口扫描包路径
@EnableJpaRepositories(basePackages = "org.example.dao")
//定义实体entity扫描包路径
@EntityScan(basePackages = "org.example.entity")
public class SpringBootHelloWorldApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpringBootHelloWorldApplication.class, args);
    }

}
